/**
 */
package org.mro.grib.model.files.secondEdition.sections;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Type Of Data</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.mro.grib.model.files.secondEdition.sections.SectionsPackage#getTypeOfData()
 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Code table 1.4 \u2013 Type of data' note_1_en='An initialized analysis is considered a zero-hour forecast.'"
 * @generated
 */
public enum TypeOfData implements Enumerator {
	/**
	 * The '<em><b>ANALYSIS PRODUCTS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ANALYSIS_PRODUCTS_VALUE
	 * @generated
	 * @ordered
	 */
	ANALYSIS_PRODUCTS(0, "ANALYSIS_PRODUCTS", "ANALYSIS_PRODUCTS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>FORECAST PRODUCTS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FORECAST_PRODUCTS_VALUE
	 * @generated
	 * @ordered
	 */
	FORECAST_PRODUCTS(1, "FORECAST_PRODUCTS", "FORECAST_PRODUCTS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>ANALYSIS AND FORECAST PRODUCTS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ANALYSIS_AND_FORECAST_PRODUCTS_VALUE
	 * @generated
	 * @ordered
	 */
	ANALYSIS_AND_FORECAST_PRODUCTS(2, "ANALYSIS_AND_FORECAST_PRODUCTS", "ANALYSIS_AND_FORECAST_PRODUCTS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>CONTROL FORECAST PRODUCTS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CONTROL_FORECAST_PRODUCTS_VALUE
	 * @generated
	 * @ordered
	 */
	CONTROL_FORECAST_PRODUCTS(3, "CONTROL_FORECAST_PRODUCTS", "CONTROL_FORECAST_PRODUCTS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>PERTURBED FORECAST PRODUCTS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PERTURBED_FORECAST_PRODUCTS_VALUE
	 * @generated
	 * @ordered
	 */
	PERTURBED_FORECAST_PRODUCTS(4, "PERTURBED_FORECAST_PRODUCTS", "PERTURBED_FORECAST_PRODUCTS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>CONTROL AND PERTURBED FORECAST PRODUCTS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CONTROL_AND_PERTURBED_FORECAST_PRODUCTS_VALUE
	 * @generated
	 * @ordered
	 */
	CONTROL_AND_PERTURBED_FORECAST_PRODUCTS(5, "CONTROL_AND_PERTURBED_FORECAST_PRODUCTS", "CONTROL_AND_PERTURBED_FORECAST_PRODUCTS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>PROCESSED SATELLITE OBSERVATIONS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PROCESSED_SATELLITE_OBSERVATIONS_VALUE
	 * @generated
	 * @ordered
	 */
	PROCESSED_SATELLITE_OBSERVATIONS(6, "PROCESSED_SATELLITE_OBSERVATIONS", "PROCESSED_SATELLITE_OBSERVATIONS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>PROCESSED RADAR OBSERVATIONS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PROCESSED_RADAR_OBSERVATIONS_VALUE
	 * @generated
	 * @ordered
	 */
	PROCESSED_RADAR_OBSERVATIONS(7, "PROCESSED_RADAR_OBSERVATIONS", "PROCESSED_RADAR_OBSERVATIONS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>EVENT PROBABILITY</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #EVENT_PROBABILITY_VALUE
	 * @generated
	 * @ordered
	 */
	EVENT_PROBABILITY(8, "EVENT_PROBABILITY", "EVENT_PROBABILITY"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>MISSING</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #MISSING_VALUE
	 * @generated
	 * @ordered
	 */
	MISSING(255, "MISSING", "MISSING"); //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>ANALYSIS PRODUCTS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ANALYSIS PRODUCTS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ANALYSIS_PRODUCTS
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Analysis products'"
	 * @generated
	 * @ordered
	 */
	public static final int ANALYSIS_PRODUCTS_VALUE = 0;

	/**
	 * The '<em><b>FORECAST PRODUCTS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FORECAST PRODUCTS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FORECAST_PRODUCTS
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Forecast products'"
	 * @generated
	 * @ordered
	 */
	public static final int FORECAST_PRODUCTS_VALUE = 1;

	/**
	 * The '<em><b>ANALYSIS AND FORECAST PRODUCTS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ANALYSIS AND FORECAST PRODUCTS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ANALYSIS_AND_FORECAST_PRODUCTS
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Analysis and forecast products'"
	 * @generated
	 * @ordered
	 */
	public static final int ANALYSIS_AND_FORECAST_PRODUCTS_VALUE = 2;

	/**
	 * The '<em><b>CONTROL FORECAST PRODUCTS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CONTROL FORECAST PRODUCTS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CONTROL_FORECAST_PRODUCTS
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Control forecast products'"
	 * @generated
	 * @ordered
	 */
	public static final int CONTROL_FORECAST_PRODUCTS_VALUE = 3;

	/**
	 * The '<em><b>PERTURBED FORECAST PRODUCTS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PERTURBED FORECAST PRODUCTS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PERTURBED_FORECAST_PRODUCTS
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Perturbed forecast products'"
	 * @generated
	 * @ordered
	 */
	public static final int PERTURBED_FORECAST_PRODUCTS_VALUE = 4;

	/**
	 * The '<em><b>CONTROL AND PERTURBED FORECAST PRODUCTS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CONTROL AND PERTURBED FORECAST PRODUCTS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CONTROL_AND_PERTURBED_FORECAST_PRODUCTS
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Control and perturbed forecast products'"
	 * @generated
	 * @ordered
	 */
	public static final int CONTROL_AND_PERTURBED_FORECAST_PRODUCTS_VALUE = 5;

	/**
	 * The '<em><b>PROCESSED SATELLITE OBSERVATIONS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PROCESSED SATELLITE OBSERVATIONS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PROCESSED_SATELLITE_OBSERVATIONS
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Processed satellite observations'"
	 * @generated
	 * @ordered
	 */
	public static final int PROCESSED_SATELLITE_OBSERVATIONS_VALUE = 6;

	/**
	 * The '<em><b>PROCESSED RADAR OBSERVATIONS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PROCESSED RADAR OBSERVATIONS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PROCESSED_RADAR_OBSERVATIONS
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Processed radar observations'"
	 * @generated
	 * @ordered
	 */
	public static final int PROCESSED_RADAR_OBSERVATIONS_VALUE = 7;

	/**
	 * The '<em><b>EVENT PROBABILITY</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>EVENT PROBABILITY</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #EVENT_PROBABILITY
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Event probability'"
	 * @generated
	 * @ordered
	 */
	public static final int EVENT_PROBABILITY_VALUE = 8;

	/**
	 * The '<em><b>MISSING</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>MISSING</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #MISSING
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Missing'"
	 * @generated
	 * @ordered
	 */
	public static final int MISSING_VALUE = 255;

	/**
	 * An array of all the '<em><b>Type Of Data</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final TypeOfData[] VALUES_ARRAY =
		new TypeOfData[] {
			ANALYSIS_PRODUCTS,
			FORECAST_PRODUCTS,
			ANALYSIS_AND_FORECAST_PRODUCTS,
			CONTROL_FORECAST_PRODUCTS,
			PERTURBED_FORECAST_PRODUCTS,
			CONTROL_AND_PERTURBED_FORECAST_PRODUCTS,
			PROCESSED_SATELLITE_OBSERVATIONS,
			PROCESSED_RADAR_OBSERVATIONS,
			EVENT_PROBABILITY,
			MISSING,
		};

	/**
	 * A public read-only list of all the '<em><b>Type Of Data</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<TypeOfData> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Type Of Data</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TypeOfData get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			TypeOfData result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Type Of Data</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TypeOfData getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			TypeOfData result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Type Of Data</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TypeOfData get(int value) {
		switch (value) {
			case ANALYSIS_PRODUCTS_VALUE: return ANALYSIS_PRODUCTS;
			case FORECAST_PRODUCTS_VALUE: return FORECAST_PRODUCTS;
			case ANALYSIS_AND_FORECAST_PRODUCTS_VALUE: return ANALYSIS_AND_FORECAST_PRODUCTS;
			case CONTROL_FORECAST_PRODUCTS_VALUE: return CONTROL_FORECAST_PRODUCTS;
			case PERTURBED_FORECAST_PRODUCTS_VALUE: return PERTURBED_FORECAST_PRODUCTS;
			case CONTROL_AND_PERTURBED_FORECAST_PRODUCTS_VALUE: return CONTROL_AND_PERTURBED_FORECAST_PRODUCTS;
			case PROCESSED_SATELLITE_OBSERVATIONS_VALUE: return PROCESSED_SATELLITE_OBSERVATIONS;
			case PROCESSED_RADAR_OBSERVATIONS_VALUE: return PROCESSED_RADAR_OBSERVATIONS;
			case EVENT_PROBABILITY_VALUE: return EVENT_PROBABILITY;
			case MISSING_VALUE: return MISSING;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private TypeOfData(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //TypeOfData
